package com.product.service;

import com.product.entity.OrderItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.product.to.AddOrderItemTo;
import com.product.to.UpdateOrderItemTo;
import com.product.utils.PageUtils;

import java.util.List;

public interface IOrderItemService extends IService<OrderItem> {

    void deleteOrderItem(Integer orderItemId);

    void deleteOrderItems(List<Integer> orderItemIds);

    void updateOrderItem(UpdateOrderItemTo orderItem);

    void addOrderItem(AddOrderItemTo orderItem);

    PageUtils getAllOrderItem(Integer size, Integer current, Long orderId, Long productId,Long orderItemId, Integer orderState);

    List<OrderItem> getOrderById(Long orderId);
}
